package com.yiweikeji.project.task;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.apache.commons.lang.time.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

import com.alibaba.fastjson.JSON;

import tk.mybatis.mapper.entity.Condition;
import tk.mybatis.mapper.entity.Example.Criteria;

/**
 * 卡券到期通知任务
 */
@Configuration
@EnableScheduling
public class CouponExpireNoticeTask {

	private final Logger logger = LoggerFactory.getLogger(getClass());

//	@Resource
//	private MemberService memberService;


	@Scheduled(cron = "0 0 0 1/1 * ? ") // 每天0点执行一次
	public void scheduler() {
		try {
			logger.info("执行定时任务号");

		} catch (Exception e) {
			logger.error("原因：e{}", e);
			return;
		}
	}

}
